<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function Father(){
           
        }
     function con(obj){          //一个容器,传入父构造实例对象,往F函数原型链添加实例对象,并返回
     function F(){}
     F.prototype = obj;
     return new F();
 }
 var s = new Father()
 var s1 = con(s);

 console.log(s,s1);

 function obj(){

 } 
 //js中的instanceof运算符
console.log(obj instanceof Object);//true 实例obj在不在Object构造函数中



 
    </script>
    
</body>
</html>